package com.device.repository;

import com.device.dto.DeviceDTO;
import com.device.entity.Device;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

@Repository
public interface DeviceRepository extends JpaRepository<Device, UUID> {
    
    Optional<Device> findByDeviceImei(String deviceImei);
    
    boolean existsByDeviceImei(String deviceImei);

    List<Device> findByEmail(String email);
    
    List<Device> findByDeviceModel(String deviceModel);

} 